//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    imgUrls: [
    "../../img/walk/de.jpg",
    "../../img/walk/da.jpg",
    ],
    indicatorDots: true,
    autoplay: true,
    interval: 3000,
    duration: 1000,
    show:false
  },
  hide_shopCart(e){
    console.log(e.currentTarget);
    console.log(e.target)
    if (e.currentTarget.dataset.index == e.target.dataset.index){
      this.setData({
        show: false
      })
    }
  },
  show_shopCart(){
    this.setData({
      show:true
    })
  },
  onShareAppMessage: function (res) {
    if (res.from === 'button') {
      // 来自页面内转发按钮
      console.log(res.target)
    }
    return {
      title: '潮流服饰',
      path: '/pages/index/index'
    }
  }
})